export const request=(params)=>{
  const BaseUrl="https://api-hmugo-web.itheima.net/api/public/v1"
return new Promise(function(resolve,reject){
  wx.request({
      ...params,
      url:BaseUrl+params.url,
      success:(result)=>{
        resolve(result.data.message);
      },
      fail:(err)=>{
        reject(err);
      }
  })
})
}